<?php echo $this->translate('ot-activeusers-index:header'); ?>
<br /><br />
<table class="list" width="80%">
    <tbody>
    <tr class="ui-widget-header">
        <th>Username</th>
        <th>Name</th>
        <th>Email Address</th>
        <th>Role</th>
        <th>Last Activity</th>
    </tr>
    <?php foreach ($this->activeUsers as $a) : ?>
        <tr class="<?php echo $this->cycle('row1', 'row2'); ?>">
            <td><?php echo $a['accountInfo']['username']; ?></td>
            <td><?php echo $a['accountInfo']['firstName']; ?> <?php echo $a['accountInfo']['lastName']; ?></td>
            <td><?php echo $a['accountInfo']['emailAddress']; ?></td>
            <td><?php echo $this->roleMap[$a['accountInfo']['role']]; ?></td>
            <td><?php echo $this->elapsedTime($a['dt']); ?></td>
        </tr>
    <?php endforeach; ?>
    </tbody>
</table>